{{ Form::open(array('url'=>'save=dsdoankt','method'=>'post','class'=>'form-horizontal','id'=>'addform','role'=>'form')) }}
{{ Form::token()}}
<div class="panel panel-default">
    <div class="panel-heading">
        <h4 class="panel-title">
            <span class="glyphicon glyphicon-folder-close"></span>
            Thông Tin Đoàn Thanh Tra
        </h4>
    </div>
    <div class="panel-collapse collapse in">
        <table class="table" cellspacing="0" cellpadding="0" style="margin-bottom: 0px">
            <tr>
                <td>
                    <label for="madkt" class="col-sm-3 control-label">Mã đoàn thanh tra:</label>
                    <div class="col-sm-9">
                        {{ Form::hidden('id',Input::old('id'))}}
                        {{ Form::text('madkt',Input::old('madkt'),array('placeholder' => 'Nhập mã đoàn thanh tra','class'=>'madkt form-control','required'=>'','pattern'=>'[A-Za-z0-9_]{5,20}','autofocus')) }}
                    </div> 
                </td>
            </tr>
            <tr>
                <td>
                    <label for="tendkt" class="col-sm-3 control-label">Tên đoàn thanh tra:</label>
                    <div class="col-sm-9">
                        {{ Form::text('tendkt',Input::old('tendkt'),array('placeholder' => 'Nhập tên đoàn thanh tra','class'=>'form-control','required'=>'','pattern'=>'{1,100}')) }}
                    </div> 
                </td>
            </tr>
            <tr>                      
                <td>
                    <div class="col-sm-offset-4 col-sm-8"> 
                        <button class="btn btn-success" id='submitbtn' type='submit' title="Lưu đoàn thanh tra"><span class="glyphicon glyphicon-floppy-save">&nbsp;</span>Lưu</button>&nbsp;
                        <a class="btn btn-default" id="backcs_id" href="{{url('ql=dsdoankt')}}" title="Quay lại danh sách đoàn thanh tra"><span class="glyphicon glyphicon-arrow-left">&nbsp;</span>Quay lại</a>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</div>

{{Form::close()}}    

@if(Session::has('success')) 
<script type="text/javascript">
    toastr.success("{{Session::get('success')}}");
</script>
@endif
@if(Session::has('error')) 
<script type="text/javascript">
    toastr.error("{{Session::get('error')}}");
</script>
@endif